package com.cyw.wearth.controller;

import com.cyw.wearth.api.WeatherApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : cyw
 * @date : created in  下午9:12 2021/6/11
 * @description :
 * @modified by :
 * @Version : $
 */
@RestController
@CrossOrigin
public class DateController {
    @Autowired
    private WeatherApi weatherApi;
    @GetMapping("/get_info")
    public Object weather(){
        return weatherApi.getWeatherDataUrl();
    }
}
